

def modify(lst, num):
    lst.append(4); 
    num = 10
    
a = [1,2,3]; b = 5
modify(a, b)
print(a, b)  # 输出 [1,2,3,4] 5